//
//  iDashanAppDelegate.h
//  iDashan
//
//  Created by Huahang Liu on 10/8/09.
//  Copyright University of Southern California 2009. All rights reserved.
//

#import <UIKit/UIKit.h>

#import "FriendsDb.h"
#import "LoginViewController.h"

@interface iDashanAppDelegate : NSObject <UIApplicationDelegate, LoginViewControllerDelegate> {
    
    // Main window class.
    UIWindow* window;

    // Tab bar controller. 
    UITabBarController* tabBarController;
    
    ////////////////////////////
    // Navigation controllers //
    ////////////////////////////
    //
    // Map tab navigation controller
    UINavigationController* mapTabNavigationController;
    // Friends tab navigation controller
    UINavigationController* friendsTabNavigationController;
    
    ////////////////////////////////////////////////////
    // Friends database and connection to the network //
    ////////////////////////////////////////////////////
    //
    FriendsDb* friendsDb;

    //////////////
    // Username //
    //////////////
    //
    NSString* username;
}

@property (nonatomic, retain) IBOutlet UIWindow *window;
@property (nonatomic, retain) NSString* username;

- (void)loginViewController:(LoginViewController*)controller didFinishLoginWithInfo:(NSDictionary*)loginInfo;

@end

